int load_wav_file(LONG cchBuffer,HPSTR pchBuffer,LPDIRECTSOUNDBUFFER *buf,LPDIRECTSOUND3DBUFFER *buf3d)
Parameter | Type | Description |
---|---|---|
cchBuffer | LONG | .wav file size in bytes |
pchBuffer | HPSTR | .wav file bytes |
buf | DIRECTSOUNDBUFFER ** | destination direct sound buffer |
buf3d | DIRECTSOUND3DBUFFER ** | destination direct sound buffer 3D |
Returns TRUE if loading is OK, FALSE on any error.
Loads a .wav file stored in memory. It creates the direct sound buffer (*buf and *buf3d) to receive the sound. Note that the buf and buf3d parameters are pointers to pointers.